<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>当日情绪组合</title>
    <link rel="shortcut icon" href="favicon.ico"> <link href="/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">

    <link href="/css/animate.min.css" rel="stylesheet">
    <link href="/css/style.min.css?v=4.0.0" rel="stylesheet"><base target="_blank">
    <!-- Sweet Alert -->
    <link href="/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <!-- 弹窗-->
    <script src="../../tanchuan/js/jquery-2.0.0.min.js"></script>
    <link href="../../tanchuan/css/displaystyle.css" rel="stylesheet" />
    <script src="../../tanchuan/js/syntaxhighlighter_3.0.83/shCore.js"></script>
    <script src="../../tanchuan/js/syntaxhighlighter_3.0.83/shBrushJScript.js"></script>
    <link href="../../tanchuan/js/syntaxhighlighter_3.0.83/styles/shCoreRDark.css" rel="stylesheet" />
    <script src="../../tanchuan/js/NZ-Plugin/Js/NZ-Window.min.js"></script>
    <link href="../../tanchuan/js/NZ-Plugin/Css/NZ-Window.min.css" rel="stylesheet" />
    <script src="../../tanchuan/js/NZ-Plugin/Js/NZ-Drag.min.js"></script>
</head>
<style>
    @keyframes fade {
        from {
            opacity: 1.0;
        }
        50% {
            opacity: 0.0;
        }
        to {
            opacity: 1.0;
        }
    }
    @-webkit-keyframes fade {
        from {
            opacity: 1.00;
        }
        50% {
            opacity: 0;
        }
        to {
            opacity: 1.0;
        }
    }
    .headerBox {
        padding: 1px;
        animation: fade 1000ms infinite;
        -webkit-animation: fade 600ms infinite;

    }
</style>
<script>
    var isFlash = [[${isFlash}]];
    //Ajax请求后台数据
    function myrefresh() {
        if(1==isFlash){
            window.location.reload();
        }
    }
    setTimeout('myrefresh()', 60000); //指定1分钟刷新一次

    function startTime(){
        var today=new Date();
        var h=today.getHours();
        var m=today.getMinutes();
        var s=today.getSeconds();// 在小于10的数字前加一个‘0’
        m=checkTime(m);
        s=checkTime(s);
        document.getElementById('rockTime').innerHTML=h+":"+m+":"+s;
        var a=s+'';
        t=setTimeout(function(){startTime()},500);

        /**
         * 每格5s刷新一次个股信息
         */
        if(a.endsWith("0")  || a.endsWith("5")){
           // queryStock();
        }
    }
    function checkTime(i){
        if (i<10){
            i="0" + i;
        }
        return i;
    }
    function zhangTingBan(){
        $.NZ_Window.show({
            url: '/zhangTingBan',
            width: 1500,
            height: 1000,
            operate: {
                btn_Close: true, //关闭按钮
                btn_Max: true, //最大化按钮
                btn_Refresh: true, //刷新按钮
                btn_NewWindow: true, //新窗口按钮
                resize: true //调整窗口大小按钮
            }
        });
    }
    function stockMinutes30(object){
        var code=object.id;
        $.NZ_Window.show({
            url: '/stockMinutes30?code='+code,
            width: 1500,
            height: 1000,
            operate: {
                btn_Close: true, //关闭按钮
                btn_Max: true, //最大化按钮
                btn_Refresh: true, //刷新按钮
                btn_NewWindow: true, //新窗口按钮
                resize: true //调整窗口大小按钮
            }
        });
        // window.open('/stockMinutes?code='+code,'','width=2000,height=1000,left=200,top=300,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');
    }
    function stockReDianKanOneHour(object){
        var code=object.id;
        $.NZ_Window.show({
            url: '/ths/stockKanDian?type=oneHour&code='+code,
            width: 1500,
            height: 1000,
            operate: {
                btn_Close: true, //关闭按钮
                btn_Max: true, //最大化按钮
                btn_Refresh: true, //刷新按钮
                btn_NewWindow: true, //新窗口按钮
                resize: true //调整窗口大小按钮
            }
        });
        // window.open('/stockMinutes?code='+code,'','width=2000,height=1000,left=200,top=300,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');
    }

    function stockReDianKan24Hour(object){
        var code=object.id;
        $.NZ_Window.show({
            url: '/ths/stockKanDian?type=24Hour&code='+code,
            width: 1500,
            height: 1000,
            operate: {
                btn_Close: true, //关闭按钮
                btn_Max: true, //最大化按钮
                btn_Refresh: true, //刷新按钮
                btn_NewWindow: true, //新窗口按钮
                resize: true //调整窗口大小按钮
            }
        });
        // window.open('/stockMinutes?code='+code,'','width=2000,height=1000,left=200,top=300,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');
    }
</script>
<body class="gray-bg" onload="startTime()">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
                    <div class="col-sm-6">
                        <div class="ibox">
                            <div class="ibox-content">
                                <h5>预警</h5>
                                <table class="table table-stripped small m-t-md">
                                    <tbody>
                                        <tr>
                                            <td class="no-borders">
                                                <i class="fa fa-circle text-navy"></i>
                                            </td>
                                            <td class="no-borders">
                                                示例 01
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <i class="fa fa-circle text-navy"></i>
                                            </td>
                                            <td>
                                                示例 02
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <i class="fa fa-circle text-navy"></i>
                                            </td>
                                            <td>
                                                示例 03
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <i class="fa fa-circle text-navy"></i>
                                            </td>
                                            <td>
                                                示例 03
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <i class="fa fa-circle text-navy"></i>
                                            </td>
                                            <td>
                                                示例 03
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <i class="fa fa-circle text-navy"></i>
                                            </td>
                                            <td>
                                                示例 03
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <i class="fa fa-circle text-navy"></i>
                                            </td>
                                            <td>
                                                示例 03
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <i class="fa fa-circle text-navy"></i>
                                            </td>
                                            <td>
                                                示例 03
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="ibox">
                            <div class="ibox-content">
                                <h5>项目</h5>
                                <table class="table table-stripped small m-t-md">
                                    <tbody>
                                        <tr>
                                            <td class="no-borders">
                                                <i class="fa fa-circle text-navy"></i>
                                            </td>
                                            <td class="no-borders">
                                                示例 01
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <i class="fa fa-circle text-navy"></i>
                                            </td>
                                            <td>
                                                示例 02
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <i class="fa fa-circle text-navy"></i>
                                            </td>
                                            <td>
                                                示例 03
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="ibox">
                            <div class="ibox-content">
                                <h5>消息</h5>
                                <table class="table table-stripped small m-t-md">
                                    <tbody>
                                        <tr>
                                            <td class="no-borders">
                                                <i class="fa fa-circle text-danger"></i>
                                            </td>
                                            <td class="no-borders">
                                                示例 01
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <i class="fa fa-circle text-danger"></i>
                                            </td>
                                            <td>
                                                示例 02
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <i class="fa fa-circle text-danger"></i>
                                            </td>
                                            <td>
                                                示例 03
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3">
                        <div class="ibox">
                            <div class="ibox-content">
                                <h5>通知</h5>
                                <table class="table table-stripped small m-t-md">
                                    <tbody>
                                        <tr>
                                            <td class="no-borders">
                                                <i class="fa fa-circle text-danger"></i>
                                            </td>
                                            <td class="no-borders">
                                                示例 01
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <i class="fa fa-circle text-danger"></i>
                                            </td>
                                            <td>
                                                示例 02
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <i class="fa fa-circle text-danger"></i>
                                            </td>
                                            <td>
                                                示例 03
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>

        <form id="form1" method="post" action="/addStock">
            <input type="hidden" id="addCode" name="code" value="">
            <input type="hidden" id="addDesc" name="desc" value="">
        </form>
    </div>
<!--    <script src="/js/jquery.min.js?v=2.1.4"></script>-->
    <script src="/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="/js/plugins/sparkline/jquery.sparkline.min.js"></script>
    <script src="/js/plugins/peity/jquery.peity.min.js"></script>
    <script src="/js/content.min.js?v=1.0.0"></script>
    <script src="/js/demo/peity-demo.min.js"></script>
    <script src="/js/plugins/gritter/jquery.gritter.min.js"></script>
    <script src="/js/plugins/sweetalert/sweetalert.min.js"></script>
</body>
<script>
    function chakanxaingxing(object) {
        var code = object.id;
        var url = 'http://stockpage.10jqka.com.cn/' + code;
        $.NZ_Window.show({
            url: url,
            width: 1100,
            height: 800,
            operate: {
                btn_Close: true, //关闭按钮
                btn_Max: true, //最大化按钮
                btn_Refresh: true, //刷新按钮
                btn_NewWindow: true, //新窗口按钮
                resize: true //调整窗口大小按钮
            }
        });
        // window.open('/stockMinutes?code='+code,'','width=2000,height=1000,left=200,top=300,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');
    }

    function stockKanDian(object) {
        var code = object.id;
        var url = 'stockKanDian?code=' + code.replace("kandian_", "");
        $.NZ_Window.show({
            url: url,
            width: 1100,
            height: 800,
            operate: {
                btn_Close: true, //关闭按钮
                btn_Max: true, //最大化按钮
                btn_Refresh: true, //刷新按钮
                btn_NewWindow: true, //新窗口按钮
                resize: true //调整窗口大小按钮
            }
        });
        // window.open('/stockMinutes?code='+code,'','width=2000,height=1000,left=200,top=300,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');
    }


    function showDaPan(){
        var url= 'https://data.eastmoney.com/zjlx/dpzjlx.html';
        $.NZ_Window.show({
            url: url,
            width: 1100,
            height: 800,
            operate: {
                btn_Close: true, //关闭按钮
                btn_Max: true, //最大化按钮
                btn_Refresh: true, //刷新按钮
                btn_NewWindow: true, //新窗口按钮
                resize: true //调整窗口大小按钮
            }
        });
        // window.open('/stockMinutes?code='+code,'','width=2000,height=1000,left=200,top=300,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');
    }

    function chakanBanKuai(object){
        var code=object.id;
        var url= 'http://quote.eastmoney.com/bk/'+code+'.html';
        $.NZ_Window.show({
            url: url,
            width: 1100,
            height: 800,
            operate: {
                btn_Close: true, //关闭按钮
                btn_Max: true, //最大化按钮
                btn_Refresh: true, //刷新按钮
                btn_NewWindow: true, //新窗口按钮
                resize: true //调整窗口大小按钮
            }
        });
        // window.open('/stockMinutes?code='+code,'','width=2000,height=1000,left=200,top=300,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');
    }

    function banKuaiMaoLiLv(object) {
        var code=object.id;
        var url = 'banKuaiMaoLiLv?banKuai='+code;
        $.NZ_Window.show({
            url: url,
            width: 1100,
            height: 800,
            operate: {
                btn_Close: true, //关闭按钮
                btn_Max: true, //最大化按钮
                btn_Refresh: true, //刷新按钮
                btn_NewWindow: true, //新窗口按钮
                resize: true //调整窗口大小按钮
            }
        });
    }
    function openUrl(url){
       // var code=object.id;
       // var url= 'http://quote.eastmoney.com/bk/'+code+'.html';
        window.open(url,"_blank");
        // $.NZ_Window.show({
        //     url: url,
        //     width: 1100,
        //     height: 800,
        //     operate: {
        //         btn_Close: true, //关闭按钮
        //         btn_Max: true, //最大化按钮
        //         btn_Refresh: true, //刷新按钮
        //         btn_NewWindow: true, //新窗口按钮
        //         resize: true //调整窗口大小按钮
        //     }
        // });
        // window.open('/stockMinutes?code='+code,'','width=2000,height=1000,left=200,top=300,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');
    }
</script>
</html>